﻿using SiyinPractice.Domain.ProjectManagement.ProjectManage;
using SiyinPractice.Framework.Mapper;
using SiyinPractice.Shared.ProjectManagement.Dto.ProjectManage.WXMsg;
using System.Collections.Generic;

namespace SiyinPractice.Application.ProjectManagement.ProjectManage.Mapper
{
    public class ObjectMapperConfigration : IObjectMapperConfigration
    {
        public IList<ObjectMapperCreater> ObjectMapperCreaterBuilder()
        {
            var mappingData = new List<ObjectMapperCreater>();

            mappingData.Add(new ObjectMapperCreater(typeof(WeChatDto), typeof(WeChat)).ReverseMap());
            mappingData.Add(new ObjectMapperCreater(typeof(CreateWeChatDto), typeof(WeChat)));
            mappingData.Add(new ObjectMapperCreater(typeof(DingDingDto), typeof(DingDing)).ReverseMap());
            mappingData.Add(new ObjectMapperCreater(typeof(CreateDingDingDto), typeof(DingDing)));

            return mappingData;
        }
    }
}